package com.febs.security.domain;

import com.febs.system.domain.Role;

import org.springframework.security.core.GrantedAuthority;

import java.util.List;
import java.util.Set;

import lombok.Data;

/**
 * security 用户封装类
 *
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2021/6/21
 */
@Data
public class FebsLoginUser {

    private String password;

    private String username;

    private Set<GrantedAuthority> authorities;

    private List<String> permissions;

    private List<Role> roles;

    private boolean accountNonExpired;

    private boolean accountNonLocked;

    private boolean credentialsNonExpired;

    private boolean enabled;

    private LoginType loginType;

    private String remoteAddress;

    private String theme;

    private String avatar;

    private Long userId;

    private String email;

    private String mobile;

    private String ssex;

    private String loginTime;

    private Integer isTab = 0;

}
